package com.mofang.activity.user;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.LinearLayout;
import android.widget.TextView;

import com.mofang.R;
import com.mofang.activity.BaseTitleViewActiviey;

public class MyBankAccountActivity extends BaseTitleViewActiviey implements
		OnClickListener {

	private TextView cardNo_text;// 卡号
	private TextView name_text;// 姓名
	private TextView bankName_text;// 开户行
	private TextView contactWay_text;// 联系方式
	private LinearLayout changeCardNo_ly;// 更改我的银行账号

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		setContentView(R.layout.activity_my_bank_account);
		super.onCreate(savedInstanceState);
		setNavigationTitle("我的银行账户");
		setNavigationLeftBtnImage(R.drawable.return_arrow);

		findView();

	}

	private void findView() {
		// TODO Auto-generated method stub

		cardNo_text = (TextView) findViewById(R.id.bank_account_cardNo_text);

		name_text = (TextView) findViewById(R.id.bank_account_name_text);

		bankName_text = (TextView) findViewById(R.id.bank_account_bankName_text);

		contactWay_text = (TextView) findViewById(R.id.bank_account_contactWay_text);

		changeCardNo_ly = (LinearLayout) findViewById(R.id.bank_account_changeCardNo_ly);
		changeCardNo_ly.setOnClickListener(this);
	}

	@Override
	public void onClick(View v) {
		// TODO Auto-generated method stub
		Intent intent;
		switch (v.getId()) {
		case R.id.bank_account_changeCardNo_ly:

			intent = new Intent(getApplicationContext(),
					ChangeBankAccountActivity.class);
			startActivity(intent);

			break;

		default:
			break;
		}
	}
}